<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:t="http//myfaces.apache.org/tomahawk"
	xmlns:a4j="https://ajax4jsf.dev.java.net/ajax" prefix="a4j">
<head>
<title>Multi matrix A with X</title>
<meta http-equiv="Content-language" content="cs" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

</head>
<body>
  
<f:view>
	<h:outputText value="Multiplication A with x" style="font-size: x-large" />
	<h:form id="formMultiplicationMatrixAwithVectorX">
	<h:messages />
	<h:panelGrid id="vsechnyMatice" columns="3"
				style="margin-top: 10px; width: 200px;">
	<h:outputText value="A" style="font-size: x-large" />
	<h:outputText value="x" style="font-size: x-large" />
	<h:outputText value="b1" style="font-size: x-large" />
		<h:panelGrid id="radkyAmatice2" columns="3"
				style="margin-top: 10px; width: 200px;">
				<h:inputText value="#{backingBean.matrixA.rows[0].cols[0].value}"
					style="width: 5ex;" id="a00">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
				<h:inputText value="#{backingBean.matrixA.rows[0].cols[1].value}"
					style="width: 5ex;" id="a01">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
				<h:inputText value="#{backingBean.matrixA.rows[0].cols[2].value}"
					style="width: 5ex;" id="a02">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		

				<h:inputText value="#{backingBean.matrixA.rows[1].cols[0].value}"
					style="width: 5ex;" id="a10">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
				<h:inputText value="#{backingBean.matrixA.rows[1].cols[1].value}"
					style="width: 5ex;" id="a11">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
				<h:inputText value="#{backingBean.matrixA.rows[1].cols[2].value}"
					style="width: 5ex;" id="a12">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		

				<h:inputText value="#{backingBean.matrixA.rows[2].cols[0].value}"
					style="width: 5ex;" id="a20">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
				<h:inputText value="#{backingBean.matrixA.rows[2].cols[1].value}"
					style="width: 5ex;" id="a21">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
				<h:inputText value="#{backingBean.matrixA.rows[2].cols[2].value}"
					style="width: 5ex;" id="a22">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		

				<h:inputText value="#{backingBean.matrixA.rows[3].cols[0].value}"
					style="width: 5ex;" id="a30">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
				<h:inputText value="#{backingBean.matrixA.rows[3].cols[1].value}"
					style="width: 5ex;" id="a31">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
				<h:inputText value="#{backingBean.matrixA.rows[3].cols[2].value}"
					style="width: 5ex;" id="a32">
					<f:convertNumber type="number" maxIntegerDigits="3"/>
				</h:inputText>		
			</h:panelGrid>
				
		<h:panelGrid id="radkyMaticex1" columns="1"
		style="margin-top: 10px; width: 200px;">
		<h:inputText value="#{backingBean.x1.rows[0].cols[0].value}"
			style="width: 5ex;" id="x00">
			<f:convertNumber type="number" maxIntegerDigits="3" />
		</h:inputText>
		<h:inputText value="#{backingBean.x1.rows[1].cols[0].value}"
			style="width: 5ex;" id="x10">
			<f:convertNumber type="number" maxIntegerDigits="3" />
		</h:inputText>
		<h:inputText value="#{backingBean.x1.rows[2].cols[0].value}"
			style="width: 5ex;" id="x20">
			<f:convertNumber type="number" maxIntegerDigits="3" />
		</h:inputText>
	</h:panelGrid>
			
	<h:panelGrid id="radkyMaticeB1" columns="1"
		style="margin-top: 10px; width: 200px;">
		<h:inputText value="#{backingBean.b1.rows[0].cols[0].value}"
			style="width: 5ex;" id="b00" readonly="true">
			<f:convertNumber type="number" maxIntegerDigits="3" />
		</h:inputText>
		<h:inputText value="#{backingBean.b1.rows[1].cols[0].value}"
			style="width: 5ex;" id="b10" readonly="true">
			<f:convertNumber type="number" maxIntegerDigits="3" />
		</h:inputText>
		<h:inputText value="#{backingBean.b1.rows[2].cols[0].value}"
			style="width: 5ex;" id="b20" readonly="true">
			<f:convertNumber type="number" maxIntegerDigits="3" />
		</h:inputText>
		<h:inputText value="#{backingBean.b1.rows[3].cols[0].value}"
			style="width: 5ex;" id="b30" readonly="true">
			<f:convertNumber type="number" maxIntegerDigits="3" />
		</h:inputText>
</h:panelGrid>
	</h:panelGrid>
			<h:commandButton id="btMultiAX" value="Multiplication A with vector X."
				actionListener="#{backingBean.multiAX}" />
				<h:commandButton id="btVynulujAX" value="Clear values."
				actionListener="#{backingBean.clearAX}" />
				
	</h:form>

</f:view>
</body>
</html>
